<a class="text-v-center pb-2" href="/user">
	<el-avatar :src="userInfo.headimg" :size="60"></el-avatar>
</a>
<div class="text-center text-truncate py-2">{{userInfo.nickname}}</div>
<div class="text-secondary text-center">积分：<span class="text-primary pb-2">{{userInfo.score}}</span></div>
<div class="text-center pb-2">
	<el-link href="/user/score?active=score_task" type="info" :underline="false">做任务赚积分</el-link>
</div>
<div>
	<el-button type="info" disabled size="small" class="d-block w-100" v-if="userInfo.sign_in_status">已签到</el-button>
	<el-button type="primary" size="small" class="d-block w-100" v-else @click="signInToday">未签到</el-button>
</div>
<el-menu
  default-active="{:request()->controller()}/{:request()->action()}"
  class="border-0 company-el-menu py-4"
  background-color="transparent"
  text-color="#c6c7c9"
  :unique-opened="true">
	<el-menu-item index="User/index">
		<a {neq name=":request()->action()" value="index"}href="/user"{/neq}
		class="flex el-link flex-start text-truncate user-menu-item-link"
		slot="title">
			<i class="el-icon-document mr-2"></i>
			<div>我的简历</div>
		</a>
	</el-menu-item>
	<el-menu-item index="Jobs/management">
		<a {neq name=":request()->action()" value="management"}href="/user/jobs/management"{/neq}
		class="flex el-link flex-start text-truncate user-menu-item-link"
		slot="title">
			<i class="el-icon-position mr-2"></i>
			<div>求职管理</div>
		</a>
	</el-menu-item>
	<el-menu-item index="User/follow">
		<a {neq name=":request()->action()" value="follow"}href="/user/follow"{/neq}
		class="flex el-link flex-start text-truncate user-menu-item-link"
		slot="title">
			<i class="el-icon-star-off mr-2"></i>
			<div>收藏夹</div>
		</a>
	</el-menu-item>
	<el-menu-item index="User/myMessage">
		<a {neq name=":request()->action()" value="myMessage"}href="/user/myMessage"{/neq}
		class="flex el-link flex-start text-truncate user-menu-item-link"
		slot="title">
			<i class="el-icon-chat-line-square mr-2"></i>
			<div>我的消息</div>
		</a>
	</el-menu-item>
	<el-menu-item index="User/score">
		<a {neq name=":request()->action()" value="score"}href="/user/score"{/neq}
		class="flex el-link flex-start text-truncate user-menu-item-link"
		slot="title">
			<i class="el-icon-eleme mr-2"></i>
			<div>我的积分</div>
		</a>
	</el-menu-item>
	<el-menu-item index="User/attestation">
		<a {neq name=":request()->action()" value="attestation"}href="/user/attestation"{/neq}
		class="flex el-link flex-start text-truncate user-menu-item-link"
		slot="title">
			<i class="el-icon-thumb mr-2"></i>
			<div>实名认证</div>
		</a>
	</el-menu-item>
	<el-menu-item index="User/security">
		<a {neq name=":request()->action()" value="security"}href="/user/security"{/neq}
		class="flex el-link flex-start text-truncate user-menu-item-link"
		slot="title">
			<i class="el-icon-setting mr-2"></i>
			<div>账号管理</div>
		</a>
	</el-menu-item>
</el-menu>
<!-- <div class="pb-2">
	<a class="el-button d-block w-100 el-button--primary el-button--small">
		<span class="text-white">上传附件简历</span>
	</a>
</div> -->
<div class="pb-4">
	<a href="/user/resume/works" class="el-button d-block w-100 el-button--primary el-button--small">
		<span class="text-white">上传作品</span>
	</a>
</div>
{eq name=":request()->action()" value="index"}
<div class="py-3">
	<div class="py-3 flex small">
		<div class="flex-1 text-truncate">隐私设置</div>
	    <el-tooltip effect="dark" :content="'点击切换为'+(form.privacy?' - 仅投递可见':' - 对外可见')" placement="left">
			<div class="text-primary pointer" @click="setResumePrivacy(0);" v-if="form.privacy==1">对外可见</div>
			<div class="text-secondary pointer" @click="setResumePrivacy(1);" v-else="form.privacy==0">仅投递可见</div>
	    </el-tooltip>
	</div>
	<div class="py-3 flex small">
		<div class="flex-1 text-truncate">求职状态</div>
		<div class="text-primary pointer"
		@click="showForm.basic=true;setTimeout('vm.$refs.jobStatus.focus()',100)">{{Find.job_status?getJobStatusText(Find.job_status):'未设置'}}</div>
	</div>
</div>
{/eq}